package cate.common.table.res.farm.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.farm.row.FarmRewardRow;

public class FarmRewardSheet extends ESheet<FarmRewardRow> {
    @Override
    public String getSheetName() {
        return "农场收益";
    }

    public FarmRewardRow getRewardRow(int seedType, int seedLevel, int groundLevel) {
        return getList().stream().filter(e -> e.seedType == seedType && e.seedLevel == seedLevel && e.groundLevel == groundLevel).findAny().orElse(null);
    }
}
